package com.lysj.merchant.merchant.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author Created by wtl on 2019-03-17 21:58
 * @description 门店包括门店的用户详情
 */
@Data
public class StoreUser {

    private String id; // 门店id

    private String name; // 门店名称
    private String phone;//门店联系方式
    /**
     * 餐饮行业，江浙菜、粤菜川菜、湘菜、东北菜、徽菜、闽菜、鲁菜、台湾菜、西北菜、东南亚菜、
     * 西餐、日韩菜、火锅、清真菜、小吃快餐、海鲜、烧烤、自助餐、面包甜点、茶餐厅、其他美食
     */
    private String foodType;
    private String address;//地址

    private String username; // 店长账号

    @JsonFormat(
            timezone = "GMT+8",
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    private Date createTime; // 创建时间


    public StoreUser() {
    }

    public StoreUser(String id, String name, String phone, String foodType, String address, String username, Date createTime) {
        this.id = id;
        this.name = name;
        this.phone = phone;
        this.foodType = foodType;
        this.address = address;
        this.username = username;
        this.createTime = createTime;
    }
}
